package com.rzx.service;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rzx.entity.User;
import com.rzx.repository.UserDao;
/**
 *
 * @author zhangxubin
 *
 */
@Service
public class UserService {
	
	@Resource
	private UserDao userDao;
	/**
	 * 添加用户  
	 * @author:   
	 * @date: 2019年3月28日 下午1:35:28 
	 * @Description
	 */
	
	public int addUser(User user){
		return userDao.saveUser(user);
	}
	

}
